package cn.powertime.evaluation.service;

import cn.powertime.evaluation.entity.SysUser;
import cn.powertime.evaluation.vo.ReqSysUserListVo;
import cn.powertime.evaluation.vo.RespSysUserLionVo;
import cn.powertime.evaluation.vo.RespSysUserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author ZYW
 * @since 2019-09-02
 */
public interface SysUserService extends IService<SysUser> {

    boolean ownSave(SysUser user);

    boolean edit(SysUser user);

    boolean del(SysUser user);

    SysUser findById(Long id);

    Page<RespSysUserVo> selectPage(Page<RespSysUserVo> page, ReqSysUserListVo params);

    boolean batchDel(List<String> strings);
    RespSysUserLionVo myUserLionById( Long id);

    boolean updateByIdS(SysUser sysUser);

    boolean updateByPassword(SysUser sysUser);
}
